package com.huifenqi.zhaofang.controller;

import com.huifenqi.common.HfqResponse;
import com.huifenqi.model.Biz;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lisheng
 * @description
 * @date 2018/11/1 17:59
 * @version:
 */
@RestController
@RequestMapping("/zhaofang")
@Slf4j
public class ZhaofangController {


    @GetMapping(value = "/get/biz")
    public HfqResponse getBiz() {
        log.info("zhaofang get biz");
        Biz biz = Biz.builder().id(1).biz("业务测试").build();
        return HfqResponse.<Biz>builder()
                .code(1)
                .msg("调用biz业务成功")
                .data(biz)
                .build();
    }
}
